﻿#ifndef MEMORYUSE_H
#define MEMORYUSE_H

#include <QBaseEntity>

class MemoryUse : public QBaseEntity
{
    Q_OBJECT
    Q_PROPERTY(uint64_t selfUsageSize READ getSelfUsageSize WRITE setSelfUsageSize)
    Q_PROPERTY(uint64_t usageSize READ getUsageSize WRITE setUsageSize)
    Q_PROPERTY(uint64_t totalsize READ getTotalsize WRITE setTotalsize)
    Q_PROPERTY(QDateTime computeTime READ getComputeTime WRITE setComputeTime)
public:
    explicit MemoryUse(QObject *parent = nullptr);

    uint64_t getUsageSize() const;
    void setUsageSize(const uint64_t &value);

    uint64_t getTotalsize() const;
    void setTotalsize(const uint64_t &value);

    QDateTime getComputeTime() const;
    void setComputeTime(const QDateTime &value);

    uint64_t getSelfUsageSize() const;
    void setSelfUsageSize(const uint64_t &value);

private:
    uint64_t selfUsageSize; /**< 自身使用大小*/
    uint64_t usageSize; /**< 使用大小*/
    uint64_t totalsize; /**< 总大小*/
    QDateTime computeTime; /**< 计算时间*/
};

#endif // MEMORYUSE_H
